# -*- coding: utf-8 -*-
# @Time : 2021/9/12 14:30
# @Author : hello
# @Email : xxx@gmail.com
# @File : editbfclue_page.py
# @Project : crm

"""线索模块-验证编辑功能-非必填项为空，必填项（联系人、手机）合法输入
非必填项清空"""
from selenium.webdriver.common.alert import Alert
from page.crmtest.addcluebases_page import AddClueBases

class EditBfClues(AddClueBases):

    #定义元素操作方法-清空非必选项
    def qk(self):
        ed=AddClueBases(self.driver)
        self.driver.find_element(*ed.fzr).clear()
        self.driver.find_element(*ed.company).clear()
        alert = Alert(self.driver)
        alert.accept()
        self.driver.find_element(*ed.zw).clear()
        self.driver.find_element(*ed.yx).clear()
        self.driver.find_element(*ed.lxtimek).clear()
        self.driver.find_element(*ed.lxnr).clear()
        self.driver.find_element(*ed.bz).clear()
